<?php

include_once ('bd/ModeloBD.php');

class ModeloAreaEstudio extends ModeloBD {

    private $aecodsx;
    private $aenombre;
    private $aeobservacion;
    private $aeestado;

    public function __construct($aecodsx = "", $aenombre = "", $aeobservacion = "", $aeestado = "") {
        $this->_oBaseDatos = CBaseDatos::get_instancia();
        $this->_oBaseDatos->conectar();
        $this->_sTabla = "areaestudio";
        $this->aecodsx = $aecodsx;
        $this->aenombre = $aenombre;
        $this->aeobservacion = $aeobservacion;
        $this->aeestado = $aeestado;
    }

    public function listaAreasEstudio() {
        $arArea = null;
        $sSQL = "
            SELECT *
            FROM $this->_sTabla ;";
        $arArea = $this->query_object($sSQL);
//        var_dump($arSucursal['usuario'][0]['usucodsx']); //QUERY
//        var_dump($arSucursal[0]->usucodsx); //QUERY_OBJECT
        return $arArea;
    }

}

?>